home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / libsrc / stdlib / system.c < prev   
C/C++ Source or Header  |  1999-01-01  |  448b  |  20 lines

  1. #include <utility/TagItem.h>
  2. #include <dos/dos.h>
  3. #include <exec/libraries.h>
  4.  
  5. #include <proto/dos.h>
  6.  
  7. static struct TagItem _systemlist[]={ { TAG_END,0 } }; /* No Tags */
  8.  
  9. int system(const char *string)
  10. {
  11.     if(string==NULL){
  12.         return 1;
  13.     }else{
  14.         if(((struct Library *)DOSBase)->lib_Version>=36)
  15.             return SystemTagList((STRPTR)string,_systemlist);
  16.         else
  17.             return(Execute((STRPTR)string,0L,0L));
  18.     }
  19. }
  20.